package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.PayVo;
import cn.wolfcode.domain.RefundVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("pay-service")
public interface AliPayFeign {
    @RequestMapping("/alipay/payOnline")
     Result<String> payOnline(@RequestBody PayVo payVo);

    @RequestMapping("/alipay/checkSign")
    Result<Boolean> checkSign(Map<String, String> params);

    @RequestMapping("/alipay/refundOnline")
    Result<Boolean> refundOnline(RefundVo refundVo);
}
